package com.wake.mycomposebook.ui.home.layouts.advlist.swpier

import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.unit.dp

/**
 *@author created by WA03675
 *@date  2022-04-21 16:46
 *@des
 */

@Composable
fun CarouselDot(selected: Boolean, color: Color, icon: ImageVector) {
    Icon(
        imageVector = icon,
        contentDescription = null,
        tint = if (selected) color else Color.Gray,
        modifier = Modifier
            .padding(4.dp)
            .size(12.dp)
    )

}